<template>
  <div class="card">
    <!-- <div class="header">{{stitle}}</div> -->
    <img :src="imgsrc"/>
    <div class="footer">
      <div class="gtitle">
      {{gtitle}}
      </div>
      <div class="price" v-if="price">
        {{price}}
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'myGoodCard',
  props:['stitle','imgsrc','price','gtitle','type'],
  data() {
    return {
    }
  },
  methods: {
  },
  computed: {
    isprice(){
      console.log(this.price)
    }
  }
}
</script>
<style scoped>
.card{
  background-color: #fff;
  border-radius: 10px;
  margin: 5px;
  padding: 5px;
}
.header{
  font-size:18px;
  margin-bottom:5px;
}
img{
  width: 100%;
  height: 100%;
  border-radius: 15px;
}
.gtitle{
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}
.price{
 font-size: 18px;
 color: red;
}
</style>
